package com.example.musicwebcon.service.serviceInterface;

import com.example.musicwebcon.model.dto.localDTO;
import com.example.musicwebcon.model.localSong;

public interface IlocalService {
    /**
     * 插入localSong
     *
     * @param localSong
     * @return
     */
    localSong add(localDTO localSong);

    /**
     * 查询localSong
     * @param musicId
     * @return
     */
    localSong getMusicId(String musicId);

    /**
     * 查询所有
     * @return
     */
    Iterable<localSong> getALl();

    /**
     * 修改歌曲信息
     * @param localSong
     * @return
     */
    localSong edit(localDTO localSong);

    /**
     * 删除歌曲
     *
     * @param musicId
     */
    void deleteMusicId(String musicId);
}
